import unittest
from tools.tool import tool
from Case.CaseTest import TestCase
# suite=unittest.defaultTestLoader.discover(start_dir='./',pattern='TestCase.py')
# runner=unittest.TextTestRunner()
# runner.run(suite)
#
# suite2=unittest.TestSuite()
# suite2.addTest(TestCase('test_A3mall_02'))
# runner2=unittest.TextTestRunner()
# runner2.run(suite2)

suite3=unittest.TestLoader().loadTestsFromTestCase(TestCase)
tool().baogao(suite3)
tool().send_emxeail(['mici.log','moisu.html'])